Adding emailValidator function