As long as both of the witnesses are present when you either sign the will or you acknowledge your signature on the will in the presence of two or more witnesses who then attest and sign the will in your presence it is perfectly legal.
However, a word of caution. If either or both of the witnesses are beneficiaries, their individual gifts may fail (which if they have been left residue, could result in a partial or total intestacy).
Furthermore, some words have a strict legal meaning and would not dispose of the entirety of your estate. Eg, I leave all my personal goods to XY would dispose of personal chattels and leaseholds, but not freeholds. The "construction" of wills is a legal minefield. 90% of the construction problems I see are people who have made home made wills and the will doesn't quite do what they wanted it to. But it is completely legal.