Login bugfix.
Login variables are now global.