It's a common question with lots of different views. From my experience, salvation isn't a one-time thing you lose just because you mess up. But yeah, if someone's really strayed, getting back on track involves repentance and asking for forgiveness. Scripture backs this up in a bunch of places...