logged-in users emit data with their name and id