[Fix Bug 766702] Fixes validation error for usernames.