Added the UserSession object and connect them with some functions in the UserServiceProvider.