Add sending email when password is changed.

Email functionality still commented