adding mocha test setup and disabling submit buttons after validation