validations added
validations and unit test