Added authentication hook
Merge branch 'develop'