updated authenticate request to use the request module instead of sync