Repent means a change of thinking that causes a change of direction. Having faith means you turn towards Christ. John's message is that Jesus is the only way to heaven. Your righteous behavior proves your true repentance.