fix user login ajax bug