corrected logic in attribute_values validate method