Adding authentication to all pages and adding information