validate department, product