Fixing login dialog