fixed outstanding errors with invitation and logout
Merge pull request #17 from SandStormIT/fix-logout-and-invitation-errors

fixed outstanding errors with invitation and logout