add a validation in attribute id form element.