Added validation to search form.

Search form now is validated (because of wrong date error).