added name validation