help i thought for two months i had lost the baby...

Sasha

so i had found out i was pregnant and was about 6 weeks on may 22nd when i started bleeding heavy and went to the hospital they said it was a miscarriage and said if i continued bleeding for a few days then they would be sure i had a miscarriage. i continued bleeding for 3 weeks straight...well last week i had the pregnancy symptoms again and went to the doctor and they did blood work and wanted me to come back in for an ultrasound due to my pregnancy hormones being so high. well i was so happy i saw my baby moving and kicking and flipping around at 13 weeks and 4 days.im 😟 worried though because i drank and smoked some after i was sure i had lost the baby and how do i know everything is okay with the baby after bleeding for weeks on end?!