Introduced functions for getting registration data from form.