routeAccordingToLoginState