tests for username/email whitespace
reworked logic for account creation for external providers