Fixed issue with access to pages when not logged in.