added validation on schedule in sms.rb