Implement logout and add a link to it