Author here--you're totally right. When we did this for our actual registration site, we spent hours inspecting requests in a proxy[0] to get to ~194 lines of PHP.
0: We used https://www.charlesproxy.com/
0: We used https://www.charlesproxy.com/
It's really too bad that universities don't foster creativity like this.