Provide API of logout