Added password change logic