added mongoose session to app and renamed 404 to error