Spotting/bleeding

Emely
So am around 5weeks pregnant & I had some light bleeding yesterday & today & I see that the blood is getting darker... Am I having a miscarriage or is it just because my uti?