Added ability to submit data from registration form.