added required attribute
increased the number of form fields for each type