Dr. Mallory states he has come without his ID. All personnel on military bases are made aware of the importance of wearing ID at all times. He should not have been allowed to enter the building without his ID. But this was not a goof as the writers were clearly aware of the breach of protocol which is why Duncan says: "Oh, wow. They should not have allowed that."