login ajax is now synchronous