the brain is an organ. mental illness are illness of that organ. brain scans shows that there's physical difference between a healthy brain and a sick brain.
telling someone: "you're not sick, it's all in your head", is like telling someone with asthma: "it's not real. it's all in your lungs".