Doctrine must be safeguarded by discernment, faith, pope says