updated home.js form submit handler