Added validation  for curl at mandrill handler