validation on custom search page