fix a update password function issue