FIX: Moved inputChecking code for dates to own file.