You can ask your husband to amend the complaint to use your legal name or, if you prefer, you can answer and petition the court to amend the caption. You can also make sure that the final judgment reflects your legal name.
It's not unusual for there to be an issue with a party's name as initially stated on a complaint, that must be corrected during the litigation of a case. The key is to make sure that the correction occurs before or at the time of the entry of the final judgment.

