Added validation to input fields.

Prevents force closing when nothing is entered in fields. Also ensures that timers with 0 seconds aren't added - or we'd be stuck in an indefinite loop between timers.