added model, validation