updated validations in model and spec