Fix registration activity to prevent logging in if an account name already exists