add required to input fields