Does a will need to be written by an attorney to be legitimate?

No but it does need to meet the legal requirements for a valid Will in the jurisdiction where it was executed.