added object of class UserController to FavoritesController, so that

methods isUserLoggedIn() can be accessed