added extra validation and interaction to submit model.