add submit binding to handle registration