missing template file
fix check
Fix redirections missing exit() after it