fix bugs when changing a username and other misc. could use some more
testing