Got search bar to function correctly and message to display