Uncommented the template_redirect