add authentication and log in log out functionality. updated links in nav