                                      (println "XXX should be a log not a print" request)
                                      {:status 400 :body "bad form parameters"})))))
            (GET templates/*signup-url* [token :as request]
-                (if (and
-                        (ensure-secure request)
-                        (or
-                            (nil? *signup-token*)
-                            (= token *signup-token*)))
-                    (render-html-signup)
-                    (templates/signup-restricted)))
+                (html-response
+                    (if (and
+                            (ensure-secure request)
+                            (or
+                                (nil? *signup-token*)
+                                (= token *signup-token*)))
+                        (render-html-signup)
+                        (templates/signup-restricted))))
            (POST templates/*signup-url* [email newpw confirmpw :as request]
                (if (not (ensure-secure request))
                    {:status 403}

                    (data/send-email email admin-email subject body)
                    (redirect-after-post "/")))
           (GET "/about" []
                (templates/about))


           ; "api urls"

                                         (str ":" (:server-port request))))
                     uri (:uri request)]
                   (let [domain (data/get-domain server-name)]
                       (html-response
                           (if (not (nil? domain))
                               (render-html-posts-helper (:blogid domain) request)
                               (templates/about))))))

           ; "account urls"
           (GET templates/*permission-denied-uri* [] (html-response (permission-denied)))
           (GET templates/*logout-url* [] (logout! {}))
           (GET templates/*login-url* [url :as request]
               (if (not (ensure-secure request))
                   {:status 403}
                   (html-response (templates/login {:url url}))))
           (POST templates/*login-redirect-url* [url :as request]
               (if (not (ensure-secure request))
                   {:status 403}
