Corrected showerror logic
Changed template names to camelcase