Added the ability to register by creating a new user and assigning authorities.