Improved Error Checking for Calendar Date Picker