Add error checking for params for SNS