Use jinja2 templating for logout