validating intersection between lines