add delete registration functionality