Added logging in + registering