login check added to all pages