I would suggest that this should be done only when isLogged (`helpers.isLogged`)