Fix roles on user registration.

We were storing the role in the database incorrectly and not correctly
creating the :roles set in the authentications.

Fixes #449