Adds search functionality for logged in users