{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% else %} {% endif %} {% endwith %} {%if form.errors %} {% endif %}
{{ form.csrf_token }} {{form.username.label}}
{{ form.username }}

{{form.password.label}}
{{ form.password }}

{% if next %}{% endif %}