Add logout functionality.