Fix login submit javascript problem.