Susan,
For any sacrament to be valid there are three conditions that need to be met, or present. They are matter, form and intent.
In baptism the matter is water. In your case that is met.
The form is the prayer or words said. In baptism that is the Trinitarian formula. The baptism is done in the name of the Father, Son and the Holy Spirit.
The intent is to do what the Church does or intends to do. In this case the intent is to baptize.
From the information you provided it seems clear that all conditions were met and your baptism was valid.
Anyone can baptize. It does not require a priest or a minister although the priest is the ordinary minister of baptism and the Church should be involved. But if you witnessed an accident and were present with a dying person you could baptize that person if the person requested baptism. The person doing the baptizing does not even have to be a Christian. There only needs to be proper matter, form and intent.
I don’t think you have to worry about your baptism. That would be a distraction from more important things to be thinking about.