fixed button disabling on validation, renamed main.js