   (atom {:selected [:details]
          :rsvp-search {:name ""
                        :results nil
+                       :error nil
                        :party {}}
          :party {}
          :selection {:party nil

        [:h2 "RSVP"]
        [:form {:id "rsvpsearch"
                :onSubmit #(do (.. % (preventDefault))
                               (go (let [guests (<! (search-guests name))]
                                     (om/update! data :results guests)
                                     (when (= 1 (count guests))
                                       (select-party! owner (get-in guests [0 :party]))))))}
         [:label {:for "guestsearch"} "Enter the name on your invitation:"]
         [:input {:type "text"
                  :name "guestseearch"

                  :value name
                  :ref "name"
                  :onChange #(om/update! data :name (.-value (om/get-node owner "name")))}]
         (when (some? error) [:div error])
         [:button {:type "submit"}
          "Find RSVP"]]]))))

