Added search form validation