Rewrote validObjectId function since most route handlers will be using duplicate code