added email validation

minor change, what's `uniqueIdentity` btw?