   (let [curr-user (js/Parse.User.current)]
     (if (nil? curr-user)
       (save-anonymous-user)
-      (swap! app-atom assoc :curr-user curr-user))
-    (js/console.log "user: " (get @app-atom :curr-user))))
+      (swap! app-atom assoc :curr-user curr-user))))
 
 
 (defn login-user [app-atom]

      (do
         (def new-defn-promise (.save new-defn (clj->js defn-data)))
         (.then new-defn-promise (fn [defn]
                              (js/console.log "definition saved: " defn)
                              (swap! app-atom assoc :defn-obj defn)))
         (.fail new-defn-promise (fn [err]
                                   (js/console.error err.message)
                                   (js/alert "Something went wrong :/. Please try again.")))))))



        (.set defn-obj "authorCountry" country)
        (def save-defn-promise (.save defn-obj))
        (.then save-defn-promise (fn [evt]
                                   (set! js/window.location.href "/thankyou")))
        (.fail save-defn-promise (fn [err]
                                 (js/console.error "Something went wrong: " err)))))))

(defn get-defn [idx]
  (js/Parse.Cloud.run
