In terms of mail and programs such as login, the username is more important than the UID. However, the kernel is much more concerned with UID and GID numbers than with usernames.