should I ask his passcode?

Zhel
My husband change his passcode 
cause one day I found that he been looking a woman naked photo and been watching a porn everyday,
he get mad at me because I'm questioning him about it.
 And he told me he going change his passcode and all passwords in his email, & he did."
I don't know what to do,    I feel like he doing something wrong but I'm not sure what it is?
I hope you give me advice and hoping you understand my English grammar, Thank  you 😘