Hola,
Just to say that it is really helpful to get an explanation why these spelling changes are necessary. It helps to reinforce understanding of how and when this happens with other verbs as well, and can be invaluable when you forget how a verb is conjugated, but are able to work it out from examples like this.
Many Thanks. John