2nd miscarriage in a row

I downloaded this app, and conceived within my first cycle, and I started miscarrying on Wednesday. I'm broken and I'm a complete wreck. It's my second miscarriage since having my son and they've both happened before 5 weeks. Now I'm scared I can't have anymore children :( has anyone else experienced this? X