added validations
Merge pull request #16 from anymd/validations

added validations