added an example of how the event handler can be used efficiently to take a
picture with the webcam if someone tries to login and fails