update template message
Fix bug when user is not logged