added a name validation