Update forms.py

Handling error:
global name 'link_template' is not defined