Added a view function for the search form.
It checks if the form validation is successful, and returns search form data.