fix for error when db is not up to date and visitor is initialized
remove globals, use twig in templates to load the user