modify password function fix