fixed logindialog again narf need more tests