Added 'error' and 'authenticated' events