janky solution for date validator