error page now working
Added a link to the main page in the error page