5 weeks pregnant bleeding

What can be the cause of having vaginal bleeding i have blood almost like a light period when i pee and some drops of red blood come out in the toilet i went to the ER on friday and was told it was because of a uti and to follow up with my doctor on monday i had pain but was because of the uti on my right mid side i dont have any cramping nor blood clots i just found out i was pregnant with my first a week ago so i am still very early just wondering if anyone else has gone through this i need some advice or ideas on what it can be i thought at first i might be having a miscarriage but every where i read about miscarriage is usually always heavybleeding and huge clots.