def METHOD_NAME(self, email, password):
    """login to LNMTL"""
    # Get the login page
    logger.info("Visiting %s", login_url)
    soup = self.get_soup(login_url)
    token = soup.select_one('form input[name="_token"]')["value"]
    # Send post request to login
    logger.info("Logging in...")
    response = self.submit_form(
        login_url,
        data=dict(
            _token=token,
            email=email,
            password=password,
        ),
    )
    # Check if logged in successfully
    soup = BeautifulSoup(response.content, "lxml")
    if soup.select_one('a[href="%s"]' % logout_url):
        print("Logged in")
    else:
        body = soup.select_one("body").text
        logger.debug("-" * 80)
        logger.debug(
            "\n\n".join([x for x in body.split("\n\n") if len(x.strip()) > 0])
        )
        logger.debug("-" * 80)
        logger.error("Failed to login")