it's a bit daft to log not valid but then print isValid -> remove the negation from the stringy portion