“My friend says I’m not a true Christian!”

Do we need to ask God for forgiveness every time we sin? If not, what should we do instead? My friend told me I’m not a true Christian, because I believe in grace and don’t think we’re under the Ten Commandments! What did Jesus write in the sand that caused the woman’s accusers to leave?