Login dialog fix