         (error-response 401 "Group is private"))
       (error-response 404 "No group with that id found")))
 
-  ; log in
+  ;; log in
   (PUT "/session" [email password :as req]
     (if-let [user-id (when (and email password)
                        (user/authenticate-user email password))]

          (edn-response {:ok true}))
      (error-response 400 :no-such-email)))

  ; accept an email invite to join a group
  (POST "/register" [token invite_id email now hmac :as req]
    (let [fail {:status 400 :headers {"Content-Type" "text/plain"}}]
      (cond

             :session (assoc (req :session) :user-id (user :id))})))
      (error-response 500 "Couldn't exchange token with github")))

  ;; register a user
  (PUT "/users" [email password :as req]
    (cond
      (string/blank? email)
