Pain during sex

I finished my period two days ago and noticed brown spotting. I had sex with my husband and it hurt and felt so dry 😢 I don't know why.. Maybe I'm dehydrated ,maybe my uterus is still letting out old blood from my period .. I don't know honestlyÂ