added required attribute to all the fields