re #345: Confirm and commit user before performing login
Merge branch 'confirm-email-fix' into develop