Validating input field for natural numbers: