Modify $name validation condition