Add validation to adaptor.
Merge pull request #5 from hybridgroup/validation-for-conn

Add validation to adaptor.