updated header validation