added some validation to products controller