added validation for Int