Fix for possibility of creating multiple accounts at once
Follow-up on @nicolaasmatthijs' review
Follow up on duplicate user creation
Follow-up on review for duplicate user issue
Rebased and deleted whitespace