Implemented login state.