Validate object.