refactored authentication check; now using simple middleware function
Merge branch 'master' of github.com:dan-lyn/activatoradmin