added validations to models
Merge pull request #3 from rickydo/validations

added validations to models