Added validation of email for user creation and update