now validation query is a parameter