fix authentication management in ajax