had sex day period now im bleeding again

so my y period ended this morning and I decided to have sex tonight Then I started bleeding again whats going on. its like on and off bleeding a little heavier then what I would call spotting. Has anyone had this. whats going on???