She committed zina before her wedding and got pregnant, then had a miscarriage. Is her marriage valid?


This is a questioned answered by the Permanent Committee regarding, I had an affair with a guy a week to my wedding with a different person. Some months later I discovered that I’m pregnant for the first guy not my husband. I had a miscarriage and later became pregnant for my husband. Uptil now nobody knew about this, at times i feel like confessing but he hesitate.
My question here is please how valid is my marriage and how does this affect my child islamically?.