added from and to dates fields to the searchcriteria object.