fix(gen): do not validate a user without email

With local strategy, user validation fails when saving
with an empty email but not when email is missing.