Now emits an event to the server when the user enters his name.