As soon as user submission processing comes into play, it is important to think about security, to be sure to avoid the most common application security risks (https://www.owasp.org/index.php/Top_10_2017-Top_10). The form that was created in this recipe is no exception.