Added duplicate dates check