Support optional success callback in ajax-forms plugin

[#75226372]
Implement teachers registration

[#75226372]