Added sending email on account login.