Added validation
Merge pull request #17 from prakashpp/validate

Added validation