add validations
Merge pull request #12 from rakesh-manne/addvalidations

add validations