search validation fixes