Added login check on important pages