correctly handle errors

s/input/field/?