help!

today every time I went to the bathroom and peed I always felt like I still had to pee, usually I know thats a uti but every time I would wipe a bit of blood would come out i’m suppose to start my period in 5 days but i’ve had unprotected sex and he has finished in me does that have to do with anything?