Bleeding.and I’m not on my period

Alice

I am on the pill and I have been bleeding a bit when I go to the loo. Any idea what this could be or will it just be a side effect. It also slightly hurts when I pee ???