Adding better logging for validation. Also adding input name for all

logging.

I don't like that we're replacing new lines here. Why are we doing that?