No, it is not necessary for either of the two spouses to inform the other of what they used to do before their marriage. Let he or she who happens to have fallen in such evils conceal himself or herself just as Allah has concealed them. A true repentance should suffice.
As for he who married a virgin, but it became apparent to him at consummation that she is not so for reasons of promiscuity committed before marriage, then he has the to take back the mahr (dower) he paid her and separate from her. Nevertheless, if he finds that she has truly repented, then if he keeps it confidential and conceals the matter and retains her in marriage, surely he will be rewarded for it by Allah.