v1.5 now handles Ajax requests and infinite loop on failed authent