Implemented re-checking of the maximum length for an inputfield.