Adding date validation