Add logout but Client has a bug