XHR ) {
					console.log("Done response and json - response is " + JSON.stringify(jqXHR) + ' and textStatus is ' + textStatus);
					if(textStatus == "success" && jqXHR.status == '200' && jqXHR.statusText == "OK") {
						console.log("Done - response data is " + data);
						if(data.access_token != "") {
							// Make AJAX call to set session.
							$.ajax({
								url: "/accounts/setusersession/",
								type: 'POST',
								crossDomain: true,
								cache: false,
								data: { 
									access_tok