                 (event-loop app owner))
     om/IRenderState
     (render-state [this state]
-                  (dom/div #js {:style {:width "100%"}}
+                  (dom/div #js {:style #js {:width "100%"}}
                            (case (:session/state state)
                              :secure
                              (om/build secured-application app {})

  [e app owner]
  (let [username (-> (om/get-node owner "username") .-value)
        password (-> (om/get-node owner "password") .-value)]
    (chsk-send! [:session/auth [username password]]))
  ;; suppress the form submit:
  false)


(defmethod handle-event :auth/success
  [_ app owner]
  (om/set-state! owner :session/state :secure))

(defn test-session
