Irritation and painful pee after intercourse

Hey guys so I had sex with my boyfriend the past two night and after wards I had painful pee and a lot of irritation down there kind of burning sensation but after a day it goes back to normal, what's going on? And also I would get white discharge