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

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