minor adjustments to validations
Merge pull request #5 from cdcueva/validations

minor adjustments to validations