def METHOD_NAME():
    """Main page."""
    banned = check_banned()
    if banned:
        return render_template(
            'error.min.html',
            message='You are banned from using this tool! Reason: ' + banned,
            loggedin=False
        )
    try:
        auth = dologin()
        session['language'] = querylanguage(auth)
    except:
        # SECURITY: If we cannot login, the session is invalid.
        app.session_interface.abandon_session(app, session)
        return render_template(
            'main.min.html',
            loggedin=False
        )
    return render_template(
        'main.min.html',
        loggedin=True
    )