added functionality to display user session status and show log in or log out links.