Finally found the settings/configuration and login bug. Thanks to a fresh look at the code.