fix logout template
add missing dependencies to make passport work