Looks like the settings API would be a better way to handle the form instead: https://developer.wordpress.org/plugins/settings/using-settings-api/