login set password function fix