Added login and logout to the client