added an error report on index page