I would like to add a login form to my sidebar, similar in function to the login form on wordpress.com.
When the user logs in, the form disappears and a user identity message is displayed. I know how to put the register, login / logout links on the page, and I can get a login form on the page, but I cannot figure out how to make it go away once logged in.
I am using this post to display the user identity message.
I know it should go into a if, else or something like that, but I cannot figure out the check for login process.