hacky search field validation