Finalize the search function without form field data validation; some
bugs still exist