tightening up error checks on mongoose methods