editing and deleting for registration