Using a transaction when registering a new user
Fixed testing mode detection in register view