check for and fix validation issues