Changed the error page to the template error page