the only way to change the username on your tama is to reset the tama. then you can re-enter your username. of course, this will cause you to lose all your points, items and generations.
as to changing the name of your tamagotchi, you can either reset it and rename it (see above) or you can just wait till your tam has a baby and then name the new baby.