Implementing search form functionality