StringLength validator to return code on Max error