Created class to check if email is valid(but not duplicate)