"Your sense of worth should not be tied up in your job" only does so much when the average person's reality is that his or her job is the means by which they survive/thrive economically, a primary factor in whether or not they attract a partner and reproduce, etc.
What I would say, and perhaps what you actually mean, or if not then at least what you might now consider, is you shouldn't give anyone else the right to declare your sense of worth, including an employer.