handleChange changes the form which triggers another onchange handlechange ... tried using use ref but perhaps useCallback will also help