{% macro render_field(field) %}
    {{ field(**kwargs)|safe }}
    {% if field.errors %}
    <div class="alert alert-danger">
        <ul>
        {% for error in field.errors %}
            <li>{{ error }}</li>
        {% endfor %}
        </ul>
    </div>
  {% endif %}
{% endmacro %}
