fix the compile error and add new logout callback function
Merge pull request #4 from samuele3hu/bug_fix

fix the compile error and add new logout callback function