Add filter() method to the Form component