fix a bug: Registry function: username