Make changes to the template to use the auth check instead of relying on another context var