Add a sanitizer middleware for mongoose pre save