onchange input not working useState in react