if the parse date function recieves undefined as a value, just return undefined. Dont set the validity back to true