Added a route/state resolver to wait for the user profile to load on protected routes/states.