Use different method to prevent multiple class reg form submissions.

Now we set the onsubmit function to disable the form, on the first submit.