Make logo change form visible only if enabled in the community
Simplify domain and community handling in login process
fix tests