fixed devise jquery mobile ajax bug