Add 'required' attribute to form fields