Adding required and autocomplete attributes with polyfill