authentication through states
Remove obsolete checkSession() call
updated authentication structure and page flow
Merge pull request #2 from jamesyothers/master

Update authentication method and structure