Add event registering to search form