move login javascript out of index.html
tidy up login.js
tidy up servlets