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
Merge pull request #1 from pihish/patch-1

Update js/main.js