added required attr to form fields