Many improvements in validate_numeric_input