Grave bug in app init when determining if LDAP is enabled or not. Minor adjustments in login.