Add where clause validations.