All tests are passed, fixed a logindialog bug.