Core pr 5

Fixed some user redirects and coding style.
I would prefer that the role name was provider *user*. Provider is a different concept.