data validation for added markers and lines