capture password function change