The divorce is correct as the consensus of scholars that the divorce while in pregnancy is valid and correct.
You are at Iddah until you deliver your child. The minute you delver, you
become a stranger to your husband.
You should spend your Iddah at the house of your husband.