fix bug allowing account to be created with nil user when user email already in use