Corrected casing of variables, and re-enabled Application_Error