Avoid use of deprecated/removed symbols.
Add explicit checks for the existence of form fields in the examples.