using logout of Endpont directly