Added code to disallow attendance of an event more than once