Added validation to events form