{% for category, message in messages %}
{% if category != 'no_password_alert' %}
{% if category == 'warning' %}
{% elif category == 'success' %}
{% elif category == 'danger' %} {% endif %}
{{ message }}
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}