Major updates to error logging for debugging. Added a function to verify dates and times and an error page for these.