added validator for checking if an email address already exists