def METHOD_NAME(self, username, password):
    login_ok = True
    login_form_strs = {
        '_username': username,
        '_password': password,
        '_remember_me': 'on',
        'login': 'ログイン'
    }
    self._request_webpage('https://piapro.jp/login/', None)
    urlh = self._request_webpage(
        'https://piapro.jp/login/exe', None,
        note='Logging in', errnote='Unable to log in',
        data=urlencode_postdata(login_form_strs))
    if urlh is False:
        login_ok = False
    else:
        parts = compat_urlparse.urlparse(urlh.url)
        if parts.path != '/':
            login_ok = False
    if not login_ok:
        self.report_warning(
            'unable to log in: bad username or password')
    self._login_status = login_ok