added validations
Merge pull request #2 from smacgaha/spm/add_validations

added validations