Parser now check validity of dates

if endDate is before startDate return error