added some validation rules