Merge pull request #14 from paulyi326/dev

added logout functionality
implemented isLoggedIn()