fixed gender validation