we use RegEx module to check email validation first we define the codition of valide email by RegEx module and then then create some Email condition by if-else method if codition of valid email is same as user email then we print email is valid other wise invalid