add authentication to inside pages