fixed broken tests. fixed routing issue after login

* fixed tests broken because they were using the old field numberings still
* fixed the issue with a broken redirect after login