doesn't add item if name and barcode isn't given