<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def login(self, username, password, captcha_result=None):
 """ Sends a login request with the given kik username and password :param username: Your kik username :param password: Your kik password :param captcha_result: If this parameter is provided, it is the answer to the captcha given in the previous login attempt. """

        self.username = username
        self.password = password
        login_request = login.LoginRequest(username, password, captcha_result, self.device_id_override, self.android_id_override)
        log.info("[+] Logging in with username '{}' and a given password..."
                 .format(username, '*' * len(password)))
        return self._send_xmpp_element(login_request)