added session objects and user registration