Refactor profile/role creation name validation