Closes the search modal on form submit