Stopped accessing other pages when not logged in