Fixed bug with profile_name validation