Added required fields with js.