Add page initialization isLoggedIn check to initialize page in correct state