Added error-messages to logging/registering