automatically add required attr to input tags