Fixed null pointer exception with uninstantiated buttons.
Fully implemented checkDate method to ensure valid dates are entered.