added the registration and the authentication