added required attribute to form fields