For he hath made him to be sin for us, who knew no sin; that we might be made the righteousness of God in him. 2 Corinthians 5:21 KJV
The amazing truth of becoming born-again is that the believer is no longer alienated from God but has been (past tense, present indicative) made righteous (made to be in right standing with God) in Christ. Righteousness is a gift that we receive by faith.
For if by one man’s offence death reigned by one; much more they which receive abundance of grace and of the gift of righteousness shall reign in life by one, Jesus Christ.) Romans 5:17 KJV
For by grace are ye saved through faith; and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. Ephesians 2:8-9 KJV
Once you realize who you are in Christ, you will begin to live the holy life into which you have been immersed.