modify authentication logic to add authentication to each request