quanitity validation