All of us had sinned. There is no exemption to every human. When you sin and time came that God is disciplining you, do not be disappointed. He is just molding you and testing you to become a better person.
You will see the light and His righteousness if you let Him discipline you. It may be a tough one, but take heart, you will overcome those trials and tests. Amazing things will come after your darkest hour. He will let the light shine in you.