validate quantity
validate quantity