Fixed validator for gender in forms