update Message to include editable subject
fixed buildRegistrationTemplate function