Intestinal disorder
It sounds as if you have some form of intestinal disorder. The fact that your hair and toenails are in poor condition suggests that your intestines are not absorbing the nutrients from your food. In conjunction with your other bowel symptoms, it appears as if a gluten intolerance may be at the root of your problems.
In some individuals, the gluten can effectively gum up the intestinal villi — tiny fingerlike projections on the intestinal lining which slow down the passage of food particles, along with vastly increasing the surface area of the intestines in order to maximise absorption. When the villi are ‘glued’ together for whatever reason, the intestines are no longer able to function optimally. This means that no matter how healthy your diet and supplements are, the body is not able to effectively extract and utilise what it needs.