add better validator for filtering input number