Luke 6:27-38 ( KJV ) 27But I say unto you which hear, Love your enemies, do good to them which hate you,28Bless them that curse you, and pray for them which despitefully use you.29And unto him that smiteth thee on the one cheek offer also the other; and him that taketh away thy cloak forbid not to take thy coat also.30Give to every man that asketh of thee; and of him that taketh away thy goods ask them not again.31And as ye would that men should do to you, do ye also to them likewise.32For if ye love them which love you, what thank have ye? for sinners also love those that love them.33And if ye do good to them which do good to you, what thank have ye? for sinners also do even the same.34And if ye lend to them of whom ye hope to receive, what thank have ye? for sinners also lend to sinners, to receive as much again.35But love ye your enemies, and do good, and lend, hoping for nothing again; and your reward shall be great, and ye shall be the children of the Highest: for he is kind unto the unthankful and to the evil.36Be ye therefore merciful, as your Father also is merciful.
Matthew 5:23 ( KJV ) 23Therefore if thou bring thy gift to the altar, and there rememberest that thy brother hath ought against thee;
37Judge not, and ye shall not be judged: condemn not, and ye shall not be condemned: forgive, and ye shall be forgiven: 38Give, and it shall be given unto you; good measure, pressed down, and shaken together, and running over, shall men give into your bosom. For with the same measure that ye mete withal it shall be measured to you again.
These are the sayings Jesus told us to keep, if we keep them we love Him, if we don't He says we don't love Him. These are also the same things that Jesus gave as the criteria He will use in the judgment,
Matthew 25:31-46 ( KJV ) 31When the Son of man shall come in his glory, and all the holy angels with him, then shall he sit upon the throne of his glory: 32And before him shall be gathered all nations: and he shall separate them one from another, as a shepherd divideth his sheep from the goats: 33And he shall set the sheep on his right hand, but the goats on the left. 34Then shall the King say unto them on his right hand, Come, ye blessed of my Father, inherit the kingdom prepared for you from the foundation of the world: 35For I was an hungered, and ye gave me meat: I was thirsty, and ye gave me drink: I was a stranger, and ye took me in: 36Naked, and ye clothed me: I was sick, and ye visited me: I was in prison, and ye came unto me. 37Then shall the righteous answer him, saying, Lord, when saw we thee an hungered, and fed thee? or thirsty, and gave thee drink? 38When saw we thee a stranger, and took thee in? or naked, and clothed thee? 39Or when saw we thee sick, or in prison, and came unto thee? 40And the King shall answer and say unto them, Verily I say unto you, Inasmuch as ye have done it unto one of the least of these my brethren, ye have done it unto me. 41Then shall he say also unto them on the left hand, Depart from me, ye cursed, into everlasting fire, prepared for the devil and his angels: 42For I was an hungered, and ye gave me no meat: I was thirsty, and ye gave me no drink: 43I was a stranger, and ye took me not in: naked, and ye clothed me not: sick, and in prison, and ye visited me not. 44Then shall they also answer him, saying, Lord, when saw we thee an hungered, or athirst, or a stranger, or naked, or sick, or in prison, and did not minister unto thee? 45Then shall he answer them, saying, Verily I say unto you, Inasmuch as ye did it not to one of the least of these, ye did it not to me. 46And these shall go away into everlasting punishment: but the righteous into life eternal.
So while we are initially saved by faith without works, Jesus makes it clear that if we are going to be saved at the final judgment we need to do these. It is clear that there are works we must do in order to be saved.
Concerning, 1 John. Notice John is writing this to Christians, if every sin that they will ever commit was forgiven when they were saved, why is John saying, if we confess our sins He is faithful and just to forgive us our sins.? There would be no need for forgiveness if it was already done.
Also consider Jesus words,
Matthew 18:27-35 ( KJV ) 27Then the lord of that servant was moved with compassion, and loosed him, and forgave him the debt. 28But the same servant went out, and found one of his fellowservants, which owed him an hundred pence: and he laid hands on him, and took him by the throat, saying, Pay me that thou owest. 29And his fellowservant fell down at his feet, and besought him, saying, Have patience with me, and I will pay thee all. 30And he would not: but went and cast him into prison, till he should pay the debt. 31So when his fellowservants saw what was done, they were very sorry, and came and told unto their lord all that was done. 32Then his lord, after that he had called him, said unto him, O thou wicked servant, I forgave thee all that debt, because thou desiredst me: 33Shouldest not thou also have had compassion on thy fellowservant, even as I had pity on thee? 34And his lord was wroth, and delivered him to the tormentors, till he should pay all that was due unto him. 35So likewise shall my heavenly Father do also unto you, if ye from your hearts forgive not every one his brother their trespasses.
forgive, and ye shall be forgiven:
Jesus said if they didn't forgive others then God would not forgive them. And Jesus said this to the disciples, so obviously all sin was not forgiven at salvation. The final judgment will be made at the final judgment.