encode registration form values