alert and reset on incorrect key