add determination for unlogin state.