fixed issue for validate connection