login functions and restricted admin bar
Merge branch 'auth' into dev