add update password function.