Fix login dialog