Fixed login bug

Fixed bug where if the user selected 'Login' more then 1 time, the
program would crash.
Fixed bug where password would not completely save to registry.