Why.?

I've been trying for 5 months to get pregnant with my rainbow baby and AF comes and I get so heartbroken and don't know what to do anymore. Ladies help.