Add validation on the quantity field