Core pr 5

Fixed some user redirects and coding style.
Note that "`authenticated user`" would not match anything on sites that are switched to another locale at the time of executing this update.