use api to logout user