Corrected profile name validation.