Login and sending email works