a batch of changes

1. fixed html bugs
2. added js for sign in and account page