39 weeks and 2 days pregnant!! What is this?

Im 39 weeks and 2 days and got checked yesterday and was 3cm dilated and 70% thin effaced. Well this morning me and my husband had sex and it’s been like 2 hours since then and I went to go use the bathroom and had a lot of loose stools and went to go wipe and my toilet paper looked pinkish and clear discharge...