adding login support to ajax platform