Fixed registration problem with signing in after creating a user.