make the main map page test if logged in or not