Updated method to change password so it works even when incorrect info is entered.