implemented passwords for email feature