         base64-image   (:base64Image params)
         url            (:url params)
         description    (:description params)]
-    (if-let [error-message (get-update-errors institution-id user-id name description)]
+    (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)

    (> (count description) max-description-length)
    (str "Institution description must not exceed " max-description-length " characters.")))

(defn- get-create-errors [name description]
  (let [input-error (check-inputs name description)]
    (cond
      input-error
      input-error

      (sql-primitive (call-sql "institution_name_taken" name -1))
      (str "Institution with the name " name " already exists."))))

(defn create-institution [{:keys [params]}]
  (let [user-id      (:userId params -1)

        base64-image (:base64Image params)
        url          (:url params)
        description  (:description params)]
    (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
