Integer validation for security reasons