Disable register button after it is clicked.