It is possible to be "religious" but not right with God. *Just look at the Pharisees. Religion apart from a relationship with Jesus Christ is in vain. (
John 17:3) In
James 1:26, we read - If anyone among you thinks he is
religious, and does not bridle his tongue but deceives his own heart,
this one's religion is useless. This man's religion is vain, empty, devoid of power, lacking in content, nonproductive, dead and of no eternal value.
James 1:27 -
Pure and undefiled religion before God and the Father is this:
to visit orphans and widows in their trouble, and to keep oneself unspotted from the world. There is nothing wrong with "pure and undefiled religion" but there is certainly something wrong with impure and defiled religion.