Login dialog added (with bugs)