fixed hanging gui while logging user