code: function (rules, data, formId) {
  
          var $form = ( typeof(formId) != 'undefined' ) ? { 'id': formId } : null;
          var fields = {};
  
          for (var field in data) {
              fields[field] = data[field]
          }
  
  
          // parsing rules
          if ( typeof(rules) != 'undefined' && rules.count() > 0 ) {
              parseRules(rules, '');
              checkForRulesImports(rules);
  
              backendProto.rules = instance.rules;
  
              return validate($form, fields, null, instance.rules)
  
          } else {
              // without rules - by hand
              return new FormValidator(fields)
          }
      }
docs: Backend init
  
  @param {object} rules
  @param {object} [customRule]