added validation to product add and made some modifications