Adds file validations at model level + unit tests