added sendmail on login