Please help..

Cami

I am about 5 weeks. Noticed light spotting once two days ago and light spotting again last night. Not heavy. Used the bathroom today and this came out. Am I having a miscarriage?