search form validation and remove unneccesry logs