Validation for NSObject