Basic validation for numbers