name validation method changed