Use this anywhere you want a login form that turns into a log out button when logged in.