update changing password function