Added message header validation