add registration template, render_form macro and back to jinja2