better validation for form filtering in advanced module