Check for valid session credentials.
Merge pull request #5 from alainv/master

Check for valid session credentials.