Fixed connaction type validation