major refactor, initialized LoginState component