object Object when entering a value into the input