made login window modal
Fixed wrong resource loaded for login dialog