I found this code…
<?php if (is_user_logged_in()) : ?>
<?php global $user_identity;get_currentuserinfo();?>
<p>Welcome back <?php echo $user_identity;?></p>
” title=”Log out of this account”>Log out
<?php else :?>
how can I add LINK to this <?php echo $user_identity;?> ?