correct valid_attributes in productscontroller