Set up basis for login-state/view/controller