handle UI events in LoginActivity