Fixed the regex for validating the profile name.