Add IsValidUserName

This PR adds a new func IsValidUserName, which validates the user's name, passed in as a string.
sprintf is overkill here

"^"+validPart+"$"