Fix login state bug and update my view.