updated UI, validate the search input