modify intChecker to constrain the valid integer value.
add method isValid for FormatTextField.