Conditions for the validity of Salaah

Satr becoming visible during salaah

Q:

1. When I make wudhu, water splashes on my thighs and my pants becomes wet. So when I pray, while in the sitting position, the skin from my thighs become somewhat visible because I wear white pants. Is my prayer valid?

2. When I pray, the wind from the fan hits my clothes and the shape of my private part is visible. Also, when some people go into sajdah while wearing pants, the shape of their testes are seen, is the prayer valid?