Update js/main.js

added sign-up validation, still need hidden divs on sign-up page.
also add ids to inputs on sign-up page