Fix #14: improve login dialog