2
The register.php file is just fine...
Before the switch there is a function defined (userCheck to be exactly), and a function is only executed after being called...
So nothing to panic, file is just fine, and no overkill code.
// Edit: I see you mean the switch won't work. Well, it will. Check the loop after the hard definement. This well set eventually back the $op var.