Now 'invalid value' only appears when input boxes loose focus.