added min and max value validation to scojs_valid