Range of things going wrong down there😭

Ok so, I just had a UTI and I've been taking the tablets for it although not the 4 a day as recommended, only the 2 or so as I keep forgetting. Then all of a sudden 3 days later I get my period 2 weeks early very heavily.  And I have to go to the toilet every 20 mins. And my area is quite sore and sensitive and maybe a little swollen. Is this still the UTI playing up or?? I'm so confused and it's so disruptive.Â