added do not display messages of users not logged in