What if my name changed since I worked at this job?
You won't have any problems filing your return if there's a different name on your W-2 since the IRS only checks the Social Security Number on the W-2.
However, the name you entered on the Taxpayer Information screen (which is the name that ends up on your tax return) needs to match the name that's on your Social Security card. So, if you were married or divorced and have a new last name, be sure to enter the name from your Social Security card on the Taxpayer Information screen.