Correct event handling for grade form submission.