Account details widget only visible when user logged in


I have text widget under the membership pro login widget. In my text widget I have this code

When a member is logged in, then the account details is displayed.

See image, when member not logged in, I want this member account widget to hide/not be visible. Is this possible?