Fixes deprecated validation constraints (min and max length)