add required caption if form contains required fields