Made code changes to both gender and name validation classes