         [: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]))))))}
+                               (go (if (>= (count name) 3)
+                                     (do (om/update! data :error nil)
+                                         (let [guests (<! (search-guests name))]
+                                           (om/update! data :results guests)
+                                           (when (= 1 (count guests))
+                                             (select-party! owner (get-in guests [0 :party])))))
+                                     (om/update! data :error "Please enter three or more characters."))))}
          [: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")))}]
         [:button {:type "submit"}
          "Find RSVP"]]]))))


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