change password function, unregister