implemented more error checking in the url handlers in server.js