The register user function now works.