changed login to a dialog