Add a javascript file for the signup and login script. Fix minor bug in all the pages.