handling error for invalid product