header prints out error messages on any page