updated registration form code