test loggin in through xhr