client side validation for the SparDate