custom query validator
custom query validator example