Added required attribute to inputs