restrict input to integers