Logout and display user and email and sort search results