implemented backend part of email confirmation.

WARNING: now you can't change your email anymore because the frontend doesnt support confirming it.