Added a logout form when the user is authenticated and not on the login page.