Move the initial setUser call to the proper context.