fix login dialog