bugfix:  If the element has pattern attribute it removes the validator assigned to the eleent type