Added checks for missing/bad security headers