If I can share anything from past experiences is that until you learn to love yourself and respect yourself you will always let others treat you poorly. When you finally realize how extraordinary you are; there is no one else like you, you don't allow anyone to tell you otherwise.
Some advice from Z, loving yourself doesn't come easy to everyone. Sometimes it's a daily struggle, but don't give up on yourself, You're much stronger than you seem. You're special and wonderful. Above all you are loved. You might not see it, but those around you love you. If they don't, fuck them. Get out and find those whom will love you, broken and all.