{
          e.preventDefault();
          var has_error = false;
          var error_els = [];
          var data = {};

          // clean up existing errors since we are doing a new validation
          $('#config-options .input-style').removeClass('ui-state-error');
          $('.error-msg').html('').hide();

          // add the values that don't need validation to data
          data['switch-type'] = $('input[name=switch-type]:checked').val();
          data['stab-type'] = $('#stab-type').val();
      