Implemented the creation of the user and the control of its session.