I can´t add a new script to validate a form
I think this is a good place to start: https://docs.nextcloud.com/server/13/developer_manual/