start using events for logging in