--Updated webconfig to display error messages