* Added a validateDate() function, the date preference option is somtimes not