Add logout() method