before email validation