         base64-image (:base64Image params)
         url          (:url params)
         description  (:description params)]
-    (if-let [error-message (get-create-errors name description)]
+    (if-let [error-message (or (get-common-errors name description)
+                               (get-create-errors name))]
       (data-response error-message)
       (if-let [institution-id (sql-primitive (call-sql "add_institution" name url description))]
         (do

                        :base64Image      base64_image})) ; base64Image is last so it does not appear in the logs.
      (data-response (str "Institution " institution-id " is not found.")))))

(defn- check-inputs [name description]
  (cond
    (or (nil? name) (= name ""))
    (str "Name is required.")

        base64-image   (:base64Image params)
        url            (:url params)
        description    (:description params)]
    (if-let [error-message (or (get-common-errors name description)
                               (get-update-errors institution-id user-id name))]
      (data-response error-message)
      (do
        (call-sql "update_institution" institution-id name url description)
