Adding basic connection validation.