Adding alt text to a form field
I don't think your approach will work, adding the new "alt" field to the edit/add form is only a small part of the task. Where and how you save the data? Instead, create a new field via the manage field section. Then you can use theme_preprocess or a tlp/twig file to change the output.