Checks if a friend of the user is logged in or not and adds an image icon accordingly