When registering, you need to send an email to verify the account activation. In order to avoid repeated sending of the email, you can set the button to wait for a while after clicking send before you can continue to click it. Here is a simple example: