fixed a small issue in the main template, added a config file, and fixed /login throwing a ValueError