add required attribute in each question box