Just because one person does not value you does not mean you are not valuable.
Likewise, just because one person DOES value you does not mean you are valuable.
As painful as it may feel, approach your sense of value objectively and internally. Are you a good person? And maybe most importantly do you value the kind of person you are? Sustain yourself through that, and no one can take your value away because it will be yours alone to define.