Method LogLogin uses input parameter as a username for searching direct in CMS_User, so that I think you do it correct. Just be sure that user really has the same name and email. You can look at it in table CMS_User or in the admin page Users.
Then please check your settings for On-line marketing. First of all, "Enable on-line marketing" should be checked (Screen). And then the particular option "On-line marketing->Contact management->Activities->User login" should be checked (Screen)