add hooks package, use to direct to root on login and logout