add module for checking for guest or authenticated user in before.js