it's a bit daft to log not valid but then print isValid -> remove the negation from the stringy portion (cherry picked from commit 454baf7e)