Add a base template dir, set up login protection