{% if error.kind == "required" %}
              {{ _("mas.errors.field_required") }}
            {% elif error.kind == "exists" and field.name == "username" %}
              {{ _("mas.errors.username_taken") }}
            {% elif error.kind == "policy" %}
              {% if error.code == "username-too-short" %}
                {{ _("mas.errors.username_too_short") }}
              {% elif error.code == "username-too-long" %}
                {{ _("mas.errors.username_too_long") }}
              {% elif error.code == "username-invalid-chars" %}
                {{ _("mas.errors.username_invalid_chars") }}
              {% elif error.code == "username-all-numeric" %}
                {{ _("mas.errors.username_all_numeric") }}
              {% elif error.code == "username-banned" %}
                {{ _("mas.errors.username_banned") }}
              {% elif error.code == "username-not-allowed" %}
                {{ _("mas.errors.username_not_allowed") }}
              {% elif error.code == "email-domain-not-allowed" %}
                {{ _("mas.errors.email_domain_not_allowed") }}
              {% elif error.code == "email-domain-banned" %}
                {{ _("mas.errors.email_domain_banned") }}
              {% elif error.code == "email-not-allowed" %}
                {{ _("mas.errors.email_not_allowed") }}
              {% elif error.code == "email-banned" %}
                {{ _("mas.errors.email_banned") }}
              {% else %}
                {{ _("mas.errors.denied_policy", policy=error.message) }}
              {% endif %}
            {% elif error.kind == "password_mismatch" %}
              {{ _("mas.errors.password_mismatch") }}
            {% else %}
              {{ error.kind }}
            {% endif %}
          
        {% endif %}
      {% endfor %}
    {% endif %}
    {% if inline %}