validation of search