Fixed name-setting functionality

Client now triggers the right event on a name being submitted. Now triggerering the correct event, and sending the right data with it. Now needs the server to correctly handle the data that it receives.