add required attr to form