Deductions & credits

Hello,

I am also in a similar position, so last year I filed my 2023 return and filled out my wife's return with 
SSN 999-98-999 and E-FILED it and it was accepted. 

So should I correct last years somehow ? or no ? because even this year I have to file with her but she is still not a resident yet. so can you please help me.