updates loginpanel and resultpanel