StringLength validator to return code on Max error

StringLength validator did not return error code on maximum length violation