For that matter why are we not securing our borders and keeping track of visa holders
You're right. And God forbid another attack has it's genesis in a border crossing. I don't know how good or bad a job border patrol does, 'cause I'm just not that up to speed on the issue, but I don't think I'm too far off assuming that our borders, both N and S are porous to a frightening degree.