Token Validation Failed using Roblox Authentication when trying to login

I basically want to achieve so that the code will log itself. However, it ran into many problem such as Token Validation Failed.

The code:

import requests
import json

querystring = {"username": "user", "password": "password"}

data = {
        "ctype": "Username",
        "cvalue": querystring["username"],
        "password": querystring["password"],
}

headerss={
    'Content-type':'application/json', 
    'Accept':'application/json',
    'user-agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:66.0) Gecko/20100101 Firefox/66.0'
}

def login():
    

    r = requests.request(url="https://auth.roblox.com/v2/login", method="POST", data=json.dumps(data), headers=headerss)
    print(r.status_code)
    print(r.text)


        
login()

This code is written in Python. It appreciates if anyone helps. The error code is 403, which is ‘Token Validation Failed’.