Peace be upon you. It is necessary for a virgin girl to obtain the consent of her father or paternal grandfather to marry, unless she is independent in her affairs. It is strongly recommended to seek the approval of one of them even if she is independent. According to various Islamic scholars, entering a marriage contract without the permission of the father or grandfather is not valid. The sources of these rulings can be found on the official websites of the scholars mentioned.