added jinja2 to render the authorize page