Fixing validation and min value.