Made the gui more robust. Added a cancel button, and error reporting for
incorrect password.