Update validation for email

When creating new account, email will be validated by using validation
code.