Edit password function.