Fixed connection validation bug
Moved helper class to helper.inc