finished the search function. when clicking on the username for the displayed results, will direct to the user profile page