Added password reset and email confirmation support.