I got married at the end of last year & my last name changed but I haven’t updated social security - do I use my old last name that is still on my SS card?

We tried filing yesterday and it came back saying the names were not correct. Is simply changing it to my old last name gonna fix the issue?