Cross domain Ajax now working for login