use the security assist show region behaviors.
Select the Login link, then go to Insert -> WebAssist -> Security Assist -> Show Region
Select the Not Logged into Users rule from the list.
Next select the Log out link, go to Insert -> WebAssist -> Security Assist -> Show Region
Select the Logged into Users rule from the list.