     modal = new KDModalViewWithForms modalOptions
     form = modal.modalTabs.forms["General Settings"]
     form.on "FormValidationFailed", ->
-      form.buttons.Save.hideLoader()
+    form.buttons.Save.hideLoader()
 
   handleError =(err, buttons)->
     unless buttons

        name: slugInput.getValue()
      , (err, name)->
        if name
          slugInput.setClass 'slug-taken'
        else
          slugInput.unsetClass 'slug-taken'

    makeSlug = =>
      titleInput = modal.modalTabs.forms["General Settings"].inputs.Title

        if err then slugInput.setValue ''
        else
          slugInput.setValue newSlug
          verifySlug()

    getGroupType = ->
      modal.modalTabs.forms["Select group type"].inputs.type.getValue()
