Adding logout functionality and link.