{% with errors = get_flashed_messages(category_filter=["error"]) %}
{% if errors %}
{%- for msg in errors %}
{{ msg }}
{% endfor -%}
{% endif %}
{% endwith %}
{% with successmsgs = get_flashed_messages(category_filter=["success"]) %}
{% if successmsgs %}
{%- for msg in successmsgs %}
{{ msg }}
{% endfor -%}
{% endif %}
{% endwith %}
{% block content %} {% endblock %}