add validations
Merge pull request #1 from fizzik/validations

add validations