bugfix, do not serialize bundle when user is not logged in