Gender reassignment is only valid if both the internal and external organs are changed according to Sayyid Sistani. Thus, if only the external is changed then the person maintains the sex of their birth. If such a change occurs as described above then seemingly the woman who used to be a man will apply the rules of being a woman