Fix bug send mail

Check login