So angry! Am I being unreasonable.

My husband doesn't flirt usually he just not a flirty person. Two weeks a go I saw a message to a girl flirting fairly harmlessly b he claimed he hadn't realised how it sounded. From dates that is the first time they spoke in 9 months via fb. He works with her and doesn't have her number. Today they have been messaging so I snooped it started off about work n then she started talking about his penis. His response was about how you use it. I went mad and left. He messaged her to say I had found the messages now left angrily (only went to friends to vent). I then decided to join their convo because she said about telling me so and so to get him out of trouble. Needless to say I went mad. After returning n not speaking for hours I demanded hemail show me the messages he blocked me out of. They were him saying how he'd messed up and her saying we shouldn't be flirting people will get hurt etc. I don't know if I can trust him... We started 8 years a go with a few flirty messages. I just want him to stop now realise it's not harmless flirting. It could lead to the end of our marriage. We are expecting not we haven't had set much so I suppose I am feeling insecure that I'm not enough for him but also I don't want to mess it up because we have a two year old already.