Changes made by Neev Bagri (neevbagri@live.com).
Fixed connection error, filed validation