Validate the input method id in load method
Merge pull request #316 from santhoshtr/source_validation

Validate the input method id in load method
Merge remote-tracking branch 'upstream/master'