Fix login test in Travis.