quantity validating