Added user search functionality and fixed bug where non logged in users could not view user pages.