Added login capabilities and jinja.