fix filter logic for inquirer.

filter should be included if the filter option is specified
not if the validate option is specified