fixing filter form validation