Updating settings on login/out