Moved the mongoose fix into the user model