Top tips for Ramadan success

Allah promises us that He will forgive all our sins if we fast under two conditions: that we do it with sincere faith and we do it to please Him. What does it mean to have sincere faith while fasting? Allah says in the Qur’an that fasting was prescribed to us so that we may become righteous (2:183). But how does fasting lead to righteousness?