     (let [{status :status admin-removal :result} (http-api/post-admin-removal admin-removal-confirmation-data)
           updated-session (dissoc (:session request) :removal-data)]
       (case status
-        ::http-api/success (-> (response/redirect (utils/path-for :fe/objective-list))
-                               (assoc :session updated-session))
-        ::http-api/invalid-input {:status 400}
-
-        {:status 502}))
-    {:status 400}))
+        ::http-api/success
+        (-> (response/redirect (utils/path-for :fe/objective-list))
+            (assoc :session updated-session))
+
+        ::http-api/invalid-input
+        (do (log/info (str "post-admin-removal-confirmation: invalid input to post-admin-removal api "
+                           {:data admin-removal-confirmation-data}))
+            (default-error-page request 400))
+
+        (do (log/info (str "post-admin-removal-confirmation: api error post-admin-removal "
+                           {:http-api-status status
+                            :data admin-removal-confirmation-data}))
+            (default-error-page request 502))))
+    
+    (do (log/info (str "post-admin-removal-confirmation: fatal validation error "
+                       {:request {:params (:params request)
+                                  :route-params (:route-params request)}
+                        :authenticated-user-id (get (friend/current-authentication) :identity)}))
+        (default-error-page request 400))))
 
 (defn admin-removal-confirmation [request]
   (if-let [removal-data (fr/request->removal-data request)]

                               :writer-email (:writer-email stored-invitation)})))

          ::http-api/invalid-input
          {:status 400}

          {:status 502}))

      ::fr/invalid
      (-> (response/redirect (utils/path-for :fe/invite-writer :id (:id route-params)))
          (assoc :flash {:validation (dissoc invitation-data :status)})))
    {:status 400}))

(defn writer-invitation [{{uuid :uuid} :route-params :keys [t' locale session] :as request}]
  (let [{status :status invitation :result} (http-api/retrieve-invitation-by-uuid uuid)

           :header {"Content-Type" "text/html"}
           :body (views/edit-profile "edit-profile" request :user-profile user-profile)})

        (do (log/info (str "edit-profile-get: api get-user request error " {:status user-status :user-id (:identity (friend/current-authentication))}))
            (default-error-page request 500))))
    (do (log/info (str "edit-profile-get: attempt to edit profile when not a writer"))
        (default-error-page request 401))))

(defn edit-profile-post [request]
  (if (permissions/writer? (friend/current-authentication))
