fix Courier SMS send valid

Add SQL Validation