fix a bug in the validation of the search page in simple search