setAlarm will check for valid value, off button will alert if it's clicked when the alarm is not on.