validator checks & corrections