cleanup and username key in registry