Regardless of your mental state when you die, your Will is valid if you are of sound mind when you sign it.