fix syntax errors in errrors template and enable notifications when errors