Make the message search form functional