show a message if the user is already logged in

show a message if the user is already logged in
show a message if the user is already logged in and enable the user to logout from the same page

show a message if the user is already logged in and enable the user to
logout from the same page