add validates in model