assoc and validation for models