make login ajax use ssl