added authentication to every page