Fix syntax errors and implement registration contact saving.