Why Is “The Word Was a God” Not a Valid Translation of John 1:1?

“A god” is not demanded by Greek grammar, and it contradicts John’s context that the Word is eternal and the Creator of all things.