Add required for email
add ID to NameId claim
add InRequestScope for repository
add setting for usernames unique across tenants
reorder DB updates and smtp messages to prevent premature emails