def METHOD_NAME(self, username, password):
    query = compat_urllib_parse_urlencode({
        'username': username,
        'password': password,
        'url': 'http://www.eroprofile.com/',
    })
    login_url = self._LOGIN_URL + query
    login_page = self._download_webpage(login_url, None, False)
    m = re.search(r'Your username or password was incorrect\.', login_page)
    if m:
        raise ExtractorError(
            'Wrong username and/or password.', expected=True)
    self.report_login()
    redirect_url = self._search_regex(
        r'<script[^>]+?src="([^"]+)"', login_page, 'login redirect url')
    self._download_webpage(redirect_url, None, False)