The users.js with the register function added.