Example: Validating form fields in a slide before allowing navigation to the next slide.