Changing your name should have no effect on whether or not you can connect. You probably need to restart your Minecraft launcher.