added login/logout client API implementation;