code: public function getErrors(){
  		$errors=[];
  		foreach($this->fields as $field){
  			if(!$field->isValid()){				
  				$errors[]=['field'=>$field->getLabel(),'message'=>$field->getError()];
  			}
  		}
  
  		return $errors;
  	}
docs: Validate fields and get errors
  
  @return array - with errors if success then empty array