Adding Error Page Functionality.