Added duplicate mongoose key error handler.