Fix valid profile check
Merge branch 'alias-email-check'