Change validation in header checking