fixed profile name validation regex and added tests