fixed attribute name validation logic