- showing the avatar image only when the user is logged in.