Remove the
"return false"
from the bottom of the client side click event. That would call the server side click event.
To make it work correctly call an async logic or func to handle the registration process. Instead of calling client side event as well as server side event.
Call registration logic using jquery ajax
Then handle the onsuccess/onerror callback methods to display message in a dialog.