add user logout api definition