improve login dialog