def METHOD_NAME(self, username, password):
    webpage = self._download_webpage(self._LOGIN_URL, None)
    form = self._search_regex(
        r'(?s)<form[^>]+action="/account/login"[^>]*>(.+?)</form>',
        webpage, 'login form', default=None)
    if not form:
        return
    data = self._hidden_inputs(form)
    data.update({
        'Email': username,
        'Password': password,
    })
    login_webpage = self._download_webpage(
        self._LOGIN_URL, None, 'Logging in', data=urlencode_postdata(data))
    # If the user has multiple profiles on their account, select one. For now pick the first profile.
    profile_id = self._search_regex(
        r'<button [^>]+?data-profile-id="(\w+)"', login_webpage, 'profile id', default=None)
    if profile_id is None:
        return  # If only one profile, Hidive auto-selects it
    self._request_webpage(
        'https://www.hidive.com/ajax/chooseprofile', None,
        data=urlencode_postdata({
            'profileId': profile_id,
            'hash': self._search_regex(
                r'\<button [^>]+?data-hash="(\w+)"', login_webpage, 'profile id hash'),
            'returnUrl': '/dashboard'
        }))