improved chat functionality to include usernames