loggedin defaults to 'false' instead of 'undef'
Fixed links.