Itemcost is set to 0 when clearing the input field