Forcing the user to enter valid date information through the datepicker