Added login check for all pages