Add verification to parameter handling.

This patch will verify the filter parameters and return correct responses if
they don't pass.
Add parameter validation to negation filters.