validate int