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

Update js/main.js
adding clear storage for clear page