add validation on manage inventory