Debugged unique stock name validation that still was looking up the stock name in empty vector