Add a security check when swiping to next card