Add basic validation for the where clause