add cheap front side validation to search