Corrected bug on validating product attributes