"and he preached that people should be baptized to show that they were repenting"
"so that their sins would be forgiven" or "so that God would forgive their sins"