Add validation for int and float constraints