make validation process more robust against non-existant headers