Then you can show different content, depending on wether the user is logged in or not:
{default current_user=fetch('user','current_user')}
{section show=$current_user.is_logged_in}
Hello, {$current_user.contentobject.name}, you are now logged in!
{section-else}
Please log in first.
{/section}
{/default}