fix registering a new account when logging in through a remote identity