added object of class UserController to FavoritesviewController, so that
methods isUserLoggedIn() and getUserFromSession() can be accessed