Add an "authenticated" check to all pages to decide if logout should be displayed