Fix to login dialog