fixing min/max validation message issue