Improved validate_numbers