 
       ; passed all validations
       :else
-      (let [user-id (current-user-id req)
+      (let [user-id (helpers/current-user-id req)
             group-id (db/uuid)
             [group] (db/run-txns!
                       (group/create-group-txn {:id group-id

    (let [group-id (java.util.UUID/fromString group-id)]
      (cond
        ; logged in?
        (not (logged-in? req))
        (error-response 401 "Must be logged in.")

        ; public group?


  ; get current logged in user
  (GET "/session" req
    (if-let [user (helpers/current-user req)]
      (edn-response {:user user
                     :csrf-token (helpers/session-token)})
      {:status 401 :body "" :session nil}))

  ; log out
