Fix online/offline state when changing passwords