Added password checking when trying to switch into an existing username.