       (fn [ajax-resp]
         (if (= (:?status ajax-resp) 200)
           (let [{:keys [ch-recv send-fn state chsk]} (sente/make-channel-socket! "/chsk")]
-            ;; log user into go_client.handlers
             (re-frame/register-handler
               :log-into-server
               (fn [db [_ user-id]]

                          (debugf "Logout successful")
                          (sente/chsk-reconnect! chsk))))))
                db))

            ;; send events to go_client.handlers
            (re-frame/register-handler
              :send-event-to-server
              (fn [db [_ server-v]]

                          (debugf "Login successful")
                          (sente/chsk-reconnect! chsk))))))
                db))
            (re-frame/register-handler
              :logout-from-server
              (fn [db [_ user-id]]
