refactored to make authentication setup easier
Merge branch 'master' of https://github.com/mdko/cs360-group-project