I am looking to transform a form code using provider and riverpod. I put you first my functional code and second part the code I\'m trying to do with provider.