Check if category is valid when adding product