package quantity and package id validator and quantity filter