Added function to check login status
Merge pull request #17 from uptownjimmy/databasefix

Added function to check login status