changed the errors templates