coded the logout-scenario from the client