Validation for Core Data objects