added login state