added the 0 value as an acceptable input for an attribute value