Add the logout functionality