adding the for extra in the template to resolve the invalid CSRF token issue