Set up pages and authentication