added and passed test for name validation