It's topics like this that a lot of
thorough study of original context of the original documents are required, because there are lots of verses that suggest faith alone is required for salvation and others that suggest that faith plus consistent good behavior are required and the
bible can't contradict itself if it's inspired by God.