 
 (defn conference-series-input [data-atom]
   (fn []
-    [:input {:field :text :on-blur (fn [e] (swap! data-atom #(assoc % :series (-> e .-target .-value)))) :id :series :class "form-control" :placeholder "Name of the conference series, e.g. EuroClojure for the EuroClojure 2015 conference" :data-e2e "input-conference-series" :defaultValue (:series @data-atom)}]))
+    [:input {:field :text
+             :on-blur (fn [e] (swap! data-atom #(assoc % :series (-> e .-target .-value))))
+             :id :series
+             :class "form-control"
+             :placeholder "Name of the conference series, e.g. EuroClojure for the EuroClojure 2015 conference"
+             :data-e2e "input-conference-series"
+             :required true
+             :defaultValue (:series @data-atom)}]))
 
 (defn conference-series-suggestions [q cb]
   (backend/load-series-suggestions q cb))

      [:div {:class "row"}
       [:div {:class "col-lg-2"}]
       [:div {:class "col-lg-8"}
        [:div {:class "add-conference-form-container bg-light"}
         [forms/bind-fields (conference-form-template doc) doc]
         [:button {:class "btn btn-primary btn-md btn-orange" :on-click #(on-click-function doc) :data-e2e "button-create-conference"} save-button-label]]]
       [:div {:class "col-lg-2"}]]]]))

(defn add-conference-page []


(defn conference-form-template [data-atom]
  [:div
   (form-input "Series *" [(conference-series-component data-atom)])
   (form-input "Name *" [:input {:field :text
                               :id :name
                               :class "form-control"
                               :placeholder "Name of the conference"
                               :data-e2e "input-conference-name"
                               :required true}])
   [:div {:class "row"}
    [:div {:class "col-md-6" :data-e2e "date-conference-from"} (form-input "From *" [:div (assoc-when {:field :datepicker
                                                                                                     :id :from-date
                                                                                                     :date-format "yyyy/mm/dd"
                                                                                                     :inline false
                                                                                                     :auto-close? true
                                                                                                     :required true} :defaultValue (:from @data-atom))])]
    [:div {:class "col-md-6" :data-e2e "date-conference-to"} (form-input "To *" [:div (assoc-when {:field :datepicker
                                                                                                 :id :to-date
                                                                                                 :date-format "yyyy/mm/dd"
                                                                                                 :inline false
                                                                                                 :auto-close? true
                                                                                                 :required true} :defaultValue (:to @data-atom))])]]
   (form-input "Link *" [:input {:field :text
                               :id :link
                               :class "form-control"
                               :placeholder "Link to the conference page"
                               :data-e2e "input-conference-link"
                               :required true }])
   (form-input "Description *" [:textarea {:field :textarea
                                         :rows 5
                                         :id :description
                                         :class "form-control"
                                         :placeholder "More information about the conference"
                                         :data-e2e "input-conference-description"
                                         :required true}])])

(defn create-conference [save-to-backend-fn]
  (fn [data-atom]
