Refactored the register action in functional testing, so that it actually works now