God does not pronounce people righteous because their doctrine is correct. Only those who do what God requires are declared righteous (cf. Lev 18:5).
Lev18.5 And the Lord spoke to Moses, saying, 2 “Speak to the people of Israel and say to them, I am the Lord your God. 3 You shall not do as they do in the land of Egypt, where you lived, and you shall not do as they do in the land of Canaan, to which I am bringing you. You shall not walk in their statutes. 4 You shall follow my rules and keep my statutes and walk in them. I am the Lord your God. 5 You shall therefore keep my statutes and my rules; if a person does them, he shall live by them: I am the Lord.
James1.22 But be doers of the word, and not hearers only, deceiving yourselves. 23 For if anyone is a hearer of the word and not a doer, he is like a man who looks intently at his natural face in a mirror. 24 For he looks at himself and goes away and at once forgets what he was like. 25 But the one who looks into the perfect law, the law of liberty, and perseveres, being no hearer who forgets but a doer who acts, he will be blessed in his doing.
 Mounce, R. H. (2001). Vol. 27: Romans (electronic ed.). Logos Library System; The New American Commentary (94). Nashville: Broadman & Holman Publishers.
Published on Monday, January 30, 2012 @ 5:34 AM CDT