Fixed bug with profile name validation