how might having an endocrine disorder affect a person%E2%80%99s mental health