clear up typos, make sure validate.js proper