create max and/or min validation whatever the initial value is