Fixed bugs in password reset. Added handling for SMTP accounts with/without passwords.