add validate for appointment