get access token method added. authentication automated