change mongoose error to firebase error