code: function(data, errorMessages){
  	this.reset();
  
  	if(data) this.setData(data);
  
  	if(errorMessages)
  		this.setErrorMessages(errorMessages);
  	else
  		this.setErrorMessages(require('./errorMessages'));
  }
docs: isValid class
  validation class that is heavily inspired from codeigniter
  How it works? instantiate a new object from the class passing your data array using the following format
  fieldName: fieldValue