Update server.js

added better err handling within routers