tried to flip log in using ajex and js failed