For a tax return to be e-filed, the IRS compares you name and SSN # with it's files from the SSA. It will accept a return as long as the SSN and the first 4 letters of your last name match the SSA records.
See this note from Taxslayer, the software the the IRS provides under their VITA program...