Add min.js and fixed validation