Pain PAIN

So right before my period comes, and right before it ends; I have this weird thing where I have to pee really bad. When I do it hurts like hell and it's not really a lot of pee( or whatever it is) This only happens in the shower. Does it happen to anyone else and why? Virgin Btw