Refactored validate() method for model factory; now it returns obj with attributes and validation results