fixed registration issues with users with similar usernames