config can't be injected yet, so can't use it in states.  (Causes hard error to find)
Re-arranged order so userResolved is defined before called.