validate filter