tatus == '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_token: data.access_token, 
								user_id: data.user_id,
								type: 'email'
							}
						}).done(function( data, textStatus, jqXHR ) {
							console.log('Success callback - res