How to legally protect yourself during a divorce