Removed the beforeUpdate password check as Mongo doesn't support isDirty.