Adding a errors handler for mongoose