Fix future days limit checkbox; sanitize min/max dates; add a selenium test.