added some validates to model