I want to have a login username and password field in the header, and a registration link beside it. I want the registration link to go away once the user is logged in and the login fields to be replace with a logout link.
I have found these two snippets but they don't help me achieve what I want.