Related to H4 application

I am in US on H1B visa and going to apply H4 for my wife .

Last name on my wife passport is from her father side but last name on marriage certificate is from my side.So, will it work for h4 visa or we need to update last name in her passport and spouse name is not added on either of passport.