A mongoose plugin for synchronous/asynchronous validation.