Add min and max validation