 
     class = opts[:class] || ""
     label = opts[:label] || humanize(field)
-    {error, _} = Keyword.get form.errors, field, {nil, nil}
+    error = error_message(form, field)
 
     wrapper_class = if error do "is-invalid" else "" end
 

    class = opts[:class] || ""
    label = opts[:label] || humanize(field)
    selected = opts[:selected] || nil
    {error, _} = Keyword.get form.errors, field, {nil, nil}

    wrapper_class = if error do "is-invalid" else "" end


    render "form_submit.html", form: form, label: label, class: class
  end

  def error_message(form, field) do
    {error, _} = Keyword.get form.errors, field, {nil, nil}
    error
  end

  # card

  def card(title \\ nil, opts \\ [], [do: children]) do
