Updated typeahead validator