min, max and between validation