added required to input fields