Added login/logout and authentication with wsc