added dialogs with login errors
added login, moved File menu handling to method.