check loggin in twice through xhr