update UI in LoginActivity and MainActivity