Fixed login breakage due to moving the templates folder