Log email change and fix stats bug