Add IsValidUserName

Why bother with the named group if it's never actually used?

(also: the group names are never actually used in validName either but this is beyond the scope of this PR).