logout with promise
logout with promise